<template>
  <div class="person">
    <h2>姓名：{{ name }}</h2>
    <h2>年龄：{{ age }}</h2>
  </div>
</template>

<script>
  export default {
    name:'Person',
    props:['name','age'],
  }
</script>

<style scoped>
  .person {
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: skyblue;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px;
  }
</style>